﻿<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="Galnote.Control.TagBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="30"/>
			<RowDefinition Height="1*"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="1*"/>
			<ColumnDefinition Width="1*"/>
			<ColumnDefinition Width="1*"/>
		</Grid.ColumnDefinitions>
		<Grid Grid.ColumnSpan="3">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="1*"/>
				<ColumnDefinition Width="30"/>
			</Grid.ColumnDefinitions>
			<TextBox Style="{StaticResource ResourceKey=InputTBoxStyle}" Padding="6" Text="Tag搜索"/>
			<Border Grid.Column="1" Style="{StaticResource ResourceKey=TopSearchBrStyle}" Background="Transparent" BorderThickness="0">
				<Grid>
					<Line X1="0" X2="0" Y1="0" Y2="4000" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,2" HorizontalAlignment="Right" Margin="0,0,1,0"/>
					<Line X1="0" X2="4000" Y1="0" Y2="0" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,2" VerticalAlignment="Top"/>
					<Line X1="0" X2="4000" Y1="0" Y2="0" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,2" VerticalAlignment="Bottom" Margin="0,0,1,1"/>
					<HyperlinkButton Style="{StaticResource ResourceKey=TopSearchHBStyle}">
					<HyperlinkButton.Content>
						<StackPanel Width="30" Height="29">
							<Ellipse x:Name="TopSearchEllipse" Stretch="Fill" StrokeLineJoin="Round" Height="15" Width="15" StrokeThickness="2" Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="#FFB4B4B4" />
							<Path x:Name="TopSearchLine" Stretch="Fill" StrokeLineJoin="Round" Width="7" Height="8" Data="F1 M 0.5,0.5L 52.5,51.5" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="15,-4,0,0" Fill="White" Stroke="#FFB4B4B4" StrokeThickness="2" UseLayoutRounding="False"/>
						</StackPanel>
					</HyperlinkButton.Content>
				</HyperlinkButton>
				</Grid>
			</Border>
		</Grid>
		<Line Grid.Row="1" X1="0" X2="0" Y1="0" Y2="4000" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,2" HorizontalAlignment="Left" Margin="1,0,0,0"/>
		<Line Grid.Row="1" Grid.Column="2" X1="0" X2="0" Y1="0" Y2="4000" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,2" HorizontalAlignment="Right" Margin="0,0,1,0"/>
		<Line Grid.Row="1" Grid.ColumnSpan="3" X1="0" X2="4000" Y1="0" Y2="0" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,2" VerticalAlignment="Bottom" Margin="1,0"/>
		<ListBox x:Name="TaglistOne" Grid.Row="1" Style="{StaticResource ResourceKey=GenericLBStyle}" ScrollViewer.VerticalScrollBarVisibility="Auto" Loaded="TaglistOne_Loaded">
			<ListBox.ItemContainerStyle>
				<Style TargetType="ListBoxItem">
					<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
					<Setter Property="VerticalContentAlignment" Value="Stretch"/>
					<Setter Property="Margin" Value="4"/>
					<Setter Property="Template" Value="{StaticResource ResourceKey=GenericLBITemplate}"/>
				</Style>
			</ListBox.ItemContainerStyle>
			<ListBox.ItemsPanel>
				<ItemsPanelTemplate>
					<toolkit:WrapPanel Orientation="Vertical"/>
				</ItemsPanelTemplate>
			</ListBox.ItemsPanel>
			<ListBox.ItemTemplate>
				<DataTemplate>	
					<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=Taglist}"/>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<ListBox x:Name="TaglistTwo" Grid.Column="1" Grid.Row="1" Style="{StaticResource ResourceKey=GenericLBStyle}" ScrollViewer.VerticalScrollBarVisibility="Auto" Loaded="TaglistTwo_Loaded">
			<ListBox.ItemContainerStyle>
				<Style TargetType="ListBoxItem">
					<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
					<Setter Property="VerticalContentAlignment" Value="Stretch"/>
					<Setter Property="Margin" Value="4"/>
					<Setter Property="Template" Value="{StaticResource ResourceKey=GenericLBITemplate}"/>
				</Style>
			</ListBox.ItemContainerStyle>
			<ListBox.ItemsPanel>
				<ItemsPanelTemplate>
					<toolkit:WrapPanel Orientation="Vertical"/>
				</ItemsPanelTemplate>
			</ListBox.ItemsPanel>
			<ListBox.ItemTemplate>
				<DataTemplate>
					<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=Taglist}"/>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<ListBox Grid.Column="2" Grid.Row="1" Style="{StaticResource ResourceKey=GenericLBStyle}"/>

	</Grid>
</UserControl>
